DiscoverThe Backend Engineering Show with Hussein Nasser2x Faster Reads and Writes with this MongoDB feature | Clustered Collections
2x Faster Reads and Writes with this MongoDB feature | Clustered Collections

2x Faster Reads and Writes with this MongoDB feature | Clustered Collections

Update: 2023-05-11
Share

Description



Fundamentals of Database Engineering udemy course (link redirects to udemy with coupon)
https://database.husseinnasser.com




In version 5.3, MongoDB introduced a feature called clustered collection which stores documents in the _id index as oppose to the hidden wiredTiger hidden index. This eliminates an entire b+tree seek for reads using the _id index and also removes the additional write to the hidden index speeding both reads and writes. 




However like we know in software engineering, everything has a cost. This feature does come with a few that one must be aware of before using it. In this video I discuss the following 





  • How Original MongoDB Collections Work

  • How Clustered Collections Work

  • Benefits of Clustered Collections

  • Limitations of Clustered Collections


 





Comments 
loading
00:00
00:00
1.0x

0.5x

0.8x

1.0x

1.25x

1.5x

2.0x

3.0x

Sleep Timer

Off

End of Episode

5 Minutes

10 Minutes

15 Minutes

30 Minutes

45 Minutes

60 Minutes

120 Minutes

2x Faster Reads and Writes with this MongoDB feature | Clustered Collections

2x Faster Reads and Writes with this MongoDB feature | Clustered Collections

Hussein Nasser